import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    routes: [{
            path: '/home',
            name: 'home',
            component: require('@/components/Home').default
        },
        {
            path: '/alarm',
            name: 'Alarm',
            component: require('@/components/Alarm').default
        },
        {
            path: '/keywords',
            name: 'Keywords',
            component: require('@/components/Keywords').default
        },
        {
            path: '/negativereport',
            name: 'negativereport',
            component: require('@/components/NegativeReport').default
        },
        {
            path: '/positivereport',
            name: 'positivereport',
            component: require('@/components/PositiveReport').default
        },
        {
            path: '/report',
            name: 'Report',
            component: require('@/components/Report').default
        },
        {
            path: '*',
            redirect: '/home'
        }
    ]
})